On Nov 24, 2:22 pm, David Fanning <n...@dfanning.com> wrote:
> khorsan...@yahoo.com writes:
>> 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 ...
>
> The one big advantage of Coyote Graphics legends, of course,
> is that they stay in the same place when the graphics window
> is resized. The reason you have to move the damn iPlot
> legend so much is that when you resize the window you
> don't know where in in the world it might show up! :-)
>
> http://www.idlcoyote.com/ng_tips/loglegend.php
>
> I agree that object graphics plots look better on the
> display. But, who cares? I'm the only one looking at
> them. The key is having them look good when they are
> shown to someone else. The PostScript files produced
> by Coyote Graphics are sometimes orders of magnitude
> smaller than the PostScript files created with
> function graphics commands, and if you use ImageMagick
> to produce raster output from PostScript intermediates,
> then I would say the raster file output is comparable.
>
> Ugly display fonts aren't the first thing to spring to
> mind as something to complain about as I am twiddling
> my thumbs waiting for that function graphics plot to
> make it to the display!
>
> 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.")
Actually, it seems there is a problem with the results. I can't see
all the graphs on the window.
y1=[576.000,687.000,416.000,325.000,271.000]
y2=[665.000,702.000,527.000,493.000,433.000]
y3=[2333.00,2409.00,2168.00,1791.00,1583.00]
y4=[225.000,371.000,149.000,168.000,60.0000]
y5=[863.000,912.000,590.000,652.000,695.000]
y6=[546.000,539.000,336.000,322.000,275.000]
y7=[1431.00,1523.00,1001.00,914.000,892.000]
x=[-12,-8,0,5,10]
cgplot,x,y/10000,LineStyle=0,CHARSIZE =1,color='black', xtickv=x,
xticks=n_elements(x)-1,XTITLE='Class
1',YTITLE='Values',Title='Differernt calsses values',/window
cgplot,x,y/10000,LineStyle=0,color='green',/overplot
cgplot,x,y/10000,LineStyle=0, color='red',/overplot
cgplot,x,y/10000,LineStyle=0, color='orange',/overplot
cgplot,x,y/10000,LineStyle=0, color='magenta',/overplot
cgplot,x,y/10000,LineStyle=0, color='cyan',/overplot
cgplot,x,y/10000,LineStyle=0, color='blue',/overplot
al_legend,LineStyle=0,
['class1','class2','class3','class4','class5','class6','clas s7']$
,color=['black','green','red','orange','magenta','cyan','blu e'],Position=[0.2,
0.34], /Normal,CHarSIZE=0.8
|