Inhibit setting the X axis starting value to 0 [message #89129] |
Sun, 27 July 2014 07:36  |
amin farhang
Messages: 39 Registered: November 2010
|
Member |
|
|
Dear All,
Does anyone known how inhibit setting the X axis starting value to 0?
for example in following plot X labels are [0,100,200,300] but i want just show the [100,200,300] labels.
IDL> cgplot,findgen(300)
Thanks,
|
|
|
Re: Inhibit setting the X axis starting value to 0 [message #89131 is a reply to message #89129] |
Sun, 27 July 2014 08:04   |
dg86
Messages: 118 Registered: September 2012
|
Senior Member |
|
|
On Sunday, July 27, 2014 10:36:58 AM UTC-4, Amin Farhang wrote:
> Dear All,
>
>
>
> Does anyone known how inhibit setting the X axis starting value to 0?
>
> for example in following plot X labels are [0,100,200,300] but i want just show the [100,200,300] labels.
>
>
>
> IDL> cgplot,findgen(300)
>
>
>
>
>
> Thanks,
As with the built-in PLOT() function, setting XTICKVALUES = [100,200,300] will do what you want.
TTFN,
David
|
|
|
|
|
Re: Inhibit setting the X axis starting value to 0 [message #89134 is a reply to message #89129] |
Sun, 27 July 2014 08:24   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Amin Farhang writes:
> Does anyone known how inhibit setting the X axis starting value to 0?
> for example in following plot X labels are [0,100,200,300] but i want just show the [100,200,300] labels.
>
> IDL> cgplot,findgen(300)
IDL> cgPlot, Findgen(300), XTickV=[100,200,300], XTicks=3
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
|