Re: changing the format of axis [message #78452 is a reply to message #78363] |
Thu, 24 November 2011 02:25   |
khorsand10
Messages: 12 Registered: November 2011
|
Junior Member |
|
|
On Nov 23, 2:48 pm, David Fanning <n...@dfanning.com> wrote:
> Jeremy Bailin writes:
>>>> So if I do
>>>> plot, x, y, xtickv=x, xticks=n_elements(x)-1
>
>>>> then I get what you want.
>
>>>> -Jeremy.
>
>>> Thanks Jeremy, it works.
>>> Do you know how I can do this iplot function?
>
>> Sorry, I very rarely use iplot so I don't know.
>
> Seriously, why would you *want* to use iPlot!?
> If you want to put this into a resizeable window
> where you can save it to all kinds of output formats,
> etc., then just do this:
>
> cgPlot, x, y, xtickv=x, xticks=n_elements(x)-1, /Window
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
The graph created by iPlot looks nicer than the one produced by Plot
function, i.e. the text format. I also can move the legend window to
an empty place on the graph easily. If only I can add something like
'xtickv=x, xticks=n_elements(x)-1' to iPlot ...
|
|
|