Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-05

fpc graph

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Lee

Been trying to use the windows graph from 2.4 release svn, running on standard xp sp3 laptop, with 1024*768 resolution screen setting, 96dpi, intel mobile express 965 chipset according to control panel.

Running
drawtest with the default settings (9,2,20) gives a whole lot of random coloured vertical lines in a separate window, and Error at X = 96, Y = 4 polytest gives no discernible graph & -11 graphics error.

Is this me or a known problem? I don't see any recent changes in v 2.5 except pierre's which relate to thread stuff iirc.

What should settings be? Anyone any experience of running it, plus short example program, eg of plotting simple lines/sine wave? There are no examples in the svn.

TIA John

Nikolay Nikolov
to John Lee
John Lee wrote
Been trying to use the windows graph from 2.4 release svn, running on standard xp sp3 laptop, with 1024*768 resolution screen setting, 96dpi, intel mobile express 965 chipset according to control panel.

Note that you can also try unit ptcgraph (and ptccrt) and see if it works better for you.

Unknown author
to Nikolay Nikolov

thanks - what are the features of ptcgraph vs graph? - I just want simple line graphs in win eg of data from a file, so was guessing that graph, from its name, was the 'best' option. J

Nikolay Nikolov wrote
On 05/02/2011 02:58 PM, John Lee wrote:
Been trying to use the windows graph from 2.4 release svn, running on standard xp sp3 laptop, with 1024*768 resolution screen setting, 96dpi, intel mobile express 965 chipset according to control panel.
Show quoted text 8 lines
Note that you can also try unit ptcgraph (and ptccrt) and see if it works better for you. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Nikolay Nikolov
to Unknown author
thanks - what are the features of ptcgraph vs graph? - I just want simple line graphs in win eg of data from a file, so was guessing that graph, from its name, was the 'best' option. J

Ptcgraph is new (fpc 2.4.4 will be the first stable release that has it) and was designed to be a better implementation of graph. Since it's still new, it probably needs more testing. It should have roughly the same feature set, but with better compatibility and consistency across all platforms, as well as better emulation of all the DOS modes from TP7 (CGA, MCGA, EGA, VGA, Hercules) as well as the VESA modes from the go32v2 graph unit. It doesn't have all the extra windowsisms exposed in the win32 graph unit, because they're not portable. It also still doesn't have an equivalent to the winmouse unit, but I'm planning to make a similar ptcmouse unit sometime soon :)

Leonardo M. Ramé
to Unknown author: thanks - what are the features of ptcgraph vs graph? - I just want simple line graphs in…

Hi John, if you use Lazarus, you can try the component TAChart, it's awesome. For more info, please check this out: http://wiki.lazarus.freepascal.org/TAChart P.S.: The wiki currently is not working, but usually it works. So, if you get an error message, please try again in a couple of ours.

Leonardo M. Ramé

http://leonardorame.blogspot.com

--- On Mon, 5/2/11, wrote:

From:
Subject: Re: Re: [fpc-pascal] fpc graph
To: "FPC-Pascal users discussions"
Date: Monday, May 2, 2011, 10:03 AM

thanks - what are the features of ptcgraph vs graph? - I just want simple line graphs in win eg of data from a file, so was guessing that graph, from its name, was the 'best' option. J

Nikolay Nikolov wrote 17 lines
On 05/02/2011 02:58 PM, John Lee wrote: Been trying to use the windows graph from 2.4 release svn, running on standard xp sp3 laptop, with 1024*768 resolution screen setting, 96dpi, intel mobile express 965 chipset according to control panel. Note that you can also try unit ptcgraph (and ptccrt) and see if it works better for you. _______________________________________________ fpc-pascal maillist  -   http://lists.freepascal.org/mailman/listinfo/fpc-pascal

-----Inline Attachment Follows-----