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 #87537 is a reply to message #87536] Fri, 14 February 2014 07:36 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
elisadelgadomena@gmail.com writes:

> 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?

No, it has never happened to me, but it is not totally surprising to me,
either. :-)

The problem with a legend is that to create one and draw a box around
it, or to add a background color, or to place it somewhere in the
graphics window, you have to know how big it is. In particular, you have
to know the length of your text strings. Unfortunately, with direct
graphics, the only way to discover the length of your text string is to
draw it somewhere. In other words, you can only find out *after* the
fact.

So, there are a lot of smoke and mirror tricks that have be used. One of
my tricks is to use a pixmap to do the drawing. That works for graphics
windows, but not for PostScript files. In PostScript files, I tend to
draw the text off the page and in the background color, hoping no one
will notice. Obviously, I haven't been totally successful. :-(

I honestly don't know how to solve this problem. I'm not sure the
problem *can* be solved. I'll look into it. But I don't have great
expectations for success. Sorry.

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.")
[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 23:46:28 PDT 2025

Total time taken to generate the page: 2.80362 seconds