Hello David
First of all, thank for all your effort, it's being very helpful for me.
I wanted to do a plot with a colorbar, legend and several data sets and I was searching in your available examples to do that.
Finally I got it and it's perfect but I have a small problem. When saving it in a ps or eps the first appearance is correct (open with gv for example) but when I include it in a latex to produce a ps or pdf the titles of the legend are appearing in their normal place but also in the upper left part of the plot, ones over the others, but outside, getting mixed with other plots or text that appear in the pdf.
Have this happened to you? Since I'm a newbie in coyote libraries maybe I'm doing something wrong but I cannot find the error. I have something like this:
set_plot,'ps'
device,filename='plot.eps',/color,/encapsulated
cgPlot, mass6,log_Li6, /NoData, XTitle='Mass', YTitle='log Li',xrange=[0.7,1.75],yrange=[-0.8,3.5]
cgplotS,mass6,log_Li6,psym=8,color=age6_colors
cgplotS,mass7,log_Li7,psym=symcat(17),color=age7_colors
cgplotS,mass8,log_Li8,psym=symcat(18),color=age8_colors
cgColorbar, /Vertical, Position=[0.9, 0.1, 0.95, 0.9], Bottom=1, NColors=255, $
Minor=0, YTicklen=1, Range=[0,12], $
/Right, Title='Age (Gyr)', Format='(I2)',/fit
cglegend,titles=['planets harps','comparison harps','planets others'],psyms=[8,6,17],/box,length=0,location=[0.7,0.28],ch arsize=1.2
device,/close
set_plot,'x'
I changed the order of the legend (before the first cgplotS) and also I added the keyword alignment to the legend, but nothing changed...
I also tried to change from eps to ps but again obtained the same result :(
thanks
|