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

Home » Public Forums » archive » Adding Legends to Coyote Graphics Windows
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: Adding Legends to Coyote Graphics Windows [message #87536 is a reply to message #86880] Fri, 14 February 2014 07:09 Go to previous messageGo to previous message
elisadelgadomena is currently offline  elisadelgadomena
Messages: 6
Registered: February 2014
Junior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Writing an 8 Column array into a data file
Next Topic: 2D density plot and logarithmic axes

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

Current Time: Fri Oct 10 01:29:51 PDT 2025

Total time taken to generate the page: 1.20046 seconds