Re: IDL8.0 plot() function : how to plot to PS file like with DG "Set_Plot"? [message #72511 is a reply to message #72415] |
Mon, 20 September 2010 16:06   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Chris Torrence writes:
> Well, hopefully we are lowering the "hurt factor" for graphics,
> especially for new users.
I agree you are heading in the right direction. :-)
> David, do you have a simple reproduce case that shows the legend
> leaking out of its box?
It was pretty simple code.
;**************************************************
x = FINDGEN(200)
y = FINDGEN(100)+5
plot0 = PLOT(x*COS(x/10), x*SIN(x/10), 'b', $
NAME='First Plot')
plot1 = PLOT(y*COS(y/5), y*SIN(y/5), 'r', $
NAME='Second Plot', /OVERPLOT)
leg = legend(target=[plot0, plot1], linestyle=0)
;leg = legend(target=[plot0, plot1], $
; horizontal_spacing=0.1, linestyle=0)
end
;*************************************************
I'm running this on Windows 64-bit OS. All I did was
create the plot and then I saved it as a PDF file.
I opened it with Adobe Acrobat 9, latest version.
The "Second Plot" is extending outside the legend
boundaries.
I put a picture here, if you want it:
http://www.dfanning.com/misc/idl.pdf
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|