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

Home » Public Forums » archive » Re: Red and Green Colors Swapped when Printing from Mac
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: Red and Green Colors Swapped when Printing from Mac [message #76414] Fri, 03 June 2011 12:59 Go to previous message
Matt Haffner is currently offline  Matt Haffner
Messages: 34
Registered: October 2000
Member
On Jun 3, 12:10 pm, Mostafa <moselk...@gmail.com> wrote:

> On the graphics window, the plot is filled with blue colors in the
> outer contours and red/orange in the inner. The printout shows the
> outer contours in red colors and the inner in blue. However, the
> colorbar prints correctly.
>
> I hope it is not just my Mac nor me :)
>
> Thanks

I get output that is the same as the screen printing directly to two
different color printers (Dell & Lexmark) when using the print button
on the toolbar of a graphic using the workbench. This seems to go
right to the OS X print system (dialogs pop up, etc.).

The c.print procedure on the other hand does seem to traverse a
different code path. It looks like it's going through the PRINTER
device. I can't get it to go to any of my printers (using
DIALOG_PRINTERSETUP) without an error (CUPS reports "No %%BoundingBox:
comment in header!" on every job). If I have it go to a file instead,
the .eps is grayscale, as long despised by searching through this
group. PRINTER device settings don't seem to make a difference (e.g.,
TRUE, INDEX).

Likely the color issues are related to what "Printer Device" you have
selected as your default printer in DIALOG_PRINTERSETUP. From scanning
the printer settings files in $IDL_DIR/resource/xprinter/ppd/
nothing's been updated there since *1992*. Perhaps finding a new ppd
for your printer and dropping it in there will help, but I haven't
tried that myself yet.

Using the toolbutton in an X11 graphic window (e.g., if you run IDL
from the command line and not the workbench) uses PRINTER and will
result in this same problem, I believe.

Your best bet is to save the graphic as a PDF and print the file. An
extra line of code, but an order of magnitude less headache... hint...
hint... ITT...

- Matt
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Red and Green Colors Swapped when Printing from Mac
Next Topic: DICOM image query crashes IDL

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

Current Time: Fri Oct 10 12:51:14 PDT 2025

Total time taken to generate the page: 1.28107 seconds