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

Home » Public Forums » archive » Dashed linestyle in vectorized function graphics output, IDL 8.2.3
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Dashed linestyle in vectorized function graphics output, IDL 8.2.3 [message #84897] Mon, 17 June 2013 07:47 Go to next message
Matt[3] is currently offline  Matt[3]
Messages: 23
Registered: April 2011
Junior Member
Hi,

pl=plot(findgen(10), linestyle='dash')

Looks fine on the screen. But then if I do:

pl.save, 'test.pdf'

I lose the dashes, and just get a solid line in the PDF file. Same for PS and EPS, but looks OK in PNG and JPG.

I get this on Linux and Mac, and with dots or dashes.

Is this a bug?

Cheers,

Matt

{ x86_64 darwin unix Mac OS X 8.2.3 May 2 2013 64 64}
{ x86_64 linux unix linux 8.2.3 May 2 2013 64 64}
Re: Dashed linestyle in vectorized function graphics output, IDL 8.2.3 [message #84898 is a reply to message #84897] Mon, 17 June 2013 07:52 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matt writes:

> pl=plot(findgen(10), linestyle='dash')
>
> Looks fine on the screen. But then if I do:
>
> pl.save, 'test.pdf'
>
> I lose the dashes, and just get a solid line in the PDF file. Same for PS and EPS, but looks OK in PNG and JPG.
>
> I get this on Linux and Mac, and with dots or dashes.
>
> Is this a bug?

Certainly looks like it to me on my Windows machine running IDL 8.2.3.

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.")
Re: Dashed linestyle in vectorized function graphics output, IDL 8.2.3 [message #84899 is a reply to message #84897] Mon, 17 June 2013 07:56 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Matt writes:

> pl=plot(findgen(10), linestyle='dash')
>
> Looks fine on the screen. But then if I do:
>
> pl.save, 'test.pdf'
>
> I lose the dashes, and just get a solid line in the PDF file. Same for PS and EPS, but looks OK in PNG and JPG.
>
> I get this on Linux and Mac, and with dots or dashes.
>
> Is this a bug?

You probably already know this, but this command will give you the file
output you want:

IDL> cgplot, findgen(10), linestyle=2, output='idl.pdf'

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.")
Re: Dashed linestyle in vectorized function graphics output, IDL 8.2.3 [message #84901 is a reply to message #84897] Mon, 17 June 2013 08:16 Go to previous messageGo to next message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On Monday, June 17, 2013 8:47:05 AM UTC-6, Matt wrote:
>
> { x86_64 darwin unix Mac OS X 8.2.3 May 2 2013 64 64}
> { x86_64 linux unix linux 8.2.3 May 2 2013 64 64}

I can also reproduce this on Windows and 32-bit Linux. I'll try to find what's going on.

(Ah, happy Monday!)

mp
Re: Dashed linestyle in vectorized function graphics output, IDL 8.2.3 [message #85306 is a reply to message #84897] Wed, 24 July 2013 04:16 Go to previous messageGo to next message
joellama is currently offline  joellama
Messages: 8
Registered: July 2013
Junior Member
Just to let you know that this also happens for me too.

Very annoying!


On Monday, June 17, 2013 3:47:05 PM UTC+1, Matt wrote:
> Hi,
>
>
>
> pl=plot(findgen(10), linestyle='dash')
>
>
>
> Looks fine on the screen. But then if I do:
>
>
>
> pl.save, 'test.pdf'
>
>
>
> I lose the dashes, and just get a solid line in the PDF file. Same for PS and EPS, but looks OK in PNG and JPG.
>
>
>
> I get this on Linux and Mac, and with dots or dashes.
>
>
>
> Is this a bug?
>
>
>
> Cheers,
>
>
>
> Matt
>
>
>
> { x86_64 darwin unix Mac OS X 8.2.3 May 2 2013 64 64}
>
> { x86_64 linux unix linux 8.2.3 May 2 2013 64 64}
Re: Dashed linestyle in vectorized function graphics output, IDL 8.2.3 [message #85319 is a reply to message #85306] Wed, 24 July 2013 07:56 Go to previous message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
I'm sorry -- I forgot to report back on this issue. It's IDL-68745 & it's still open. Please contact Tech Support to add your name to it.

A (somewhat ugly) workaround is to set BITMAP=1 when calling ::Save.

mp
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Summer "English" heat or just me: Array slicing
Next Topic: IDL Datapoint blog

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

Current Time: Wed Oct 08 13:39:40 PDT 2025

Total time taken to generate the page: 0.01072 seconds