comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » cgPlot equivalent to graphic = PLOT(Equation,... ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: cgPlot equivalent to graphic = PLOT(Equation,... ? [message #90325 is a reply to message #90323] Fri, 20 February 2015 07:29 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Friday, February 20, 2015 at 5:52:14 AM UTC-7, Fabien wrote:
> On 20.02.2015 09:52, Jonas Ardo wrote:
>> I.e. how do I formulate
>> IDL> p = PLOT('X * 20 -1.', XRANGE=[0,1])
>>
>> using cgPlot?
>
> cgPlot, FINDGEN(101)/100 * 20 - 1
>
> Cheers,
>
> Fabien

But this won't give you the fancy equation feature. You won't be able to zoom or pan around in the plot and have it automatically update. To do this with "cg" you would need to have some sort of event handler, and then manually update the data or something.

Advantage, new graphics. ;-)

-Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A Calculus-level language, FortranCalculus, Compiler for Tweaking Parameters.
Next Topic: [start:final:step] bug

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:27:37 PDT 2025

Total time taken to generate the page: 0.00507 seconds