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

Home » Public Forums » archive » Re: controlling plot appearance (was "line graph problems")
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: controlling plot appearance (was "line graph problems") [message #24340 is a reply to message #24337] Tue, 27 March 2001 08:03 Go to previous messageGo to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Paul van Delst wrote:
>
>
> Maybe not - I don't use OG so I can't really say. However, it does appear from other's
> posts here that the properties available for setting/changing is quite broad. But, and for
> me at least this is a big but, if I can't create a plot in one or two lines of code then
> forget it. I want to look at my data, not set up models, and views, and coordinate
> conversions and what not. PLOT, x, y is the simplicity I'm looking for.

Hello Paul,

It would be relatively easy to create an plotting object for direct
graphics (I'm not volunteering for this until I get more than just red
colors on my display!) New graphics keywords could be added, like your
YTITLE_SHIFT keyword example. Once you figure out what to do with the
YTITLE given its SHIFT, you make it a method within the object to handle
that property. You could introduce other keywords like XSUBTITLE and
YSUBTITLE. Similar objects could be created for any kind of direct
graphics routine (I have started a direct graphics contour object a
number of times... someday I shall finish it... what? it's 2001
already?)

Here's what it might look like:

MyPlotObj = obj_new('DG_Plot', X, Y, YTITLESHIFT = [-0.1, 0],
OTHERKEYWORDS = ....)
MyPlotObj->Plot
;ah shoot, forgot to set these
MyPlotObj->SetProperty, Background = 3, isotropic = 1
MyPlot->Plot
;make a printout
devicename = !D.name
Set_plot, 'printer'
MyPlotObj->Plot
Device, /Close
Set_plot, devicename

Obj_destroy, MyPlotObj


If it were that simple then would you still say, 'if I can't create a
plot in one or two lines of code then forget it'? I think that is a
really important question, (at least I find myself asking this over and
over before starting a new project.)


Ben

P.S. YTITLE_SHIFT? Geez, how would you do that?

--
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd.
W. Boothbay Harbor, ME 04575
btupper@bigelow.org
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how do I keep IDL quiet?
Next Topic: Re: JULDAY trivia

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

Current Time: Thu Oct 09 21:06:24 PDT 2025

Total time taken to generate the page: 0.88125 seconds