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

Home » Public Forums » archive » Re: axis thickness
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
Re: axis thickness [message #340] Wed, 27 May 1992 01:32
dov is currently offline  dov
Messages: 4
Registered: February 1992
Junior Member
It's a big hazzle to change all of the various thick parameters
in IDL if all you want to do is to have the graph printed on the
postscript printer with *all* lines thicker. It would be very nice
to have a parameter for the postscript device for multiplication
of linewidth. Another option that I would like to have for postscript
is to be able to specify if the line joins should be mitre, round,
or bevel.

I'm including a small Perl script that multiplies the argument of
linewidth in a postscript file and thus makes the lines thicker.
Unfortunately it contorts stroke characters a bit, perhaps because
of the line join problem.

#!/usr/local/bin/perl -i~
############################################################ ###############
# Program to multiply the argument of linewidth in a postscript file.
############################################################ ###############
while(($_=$ARGV[0]) =~ /^-/) {
shift;

if (/^-m/) {$mult=shift; }
elsif (/^-h/) {
print<<EOH
lwmult - Multiply the argument of linewidth in a postscript file

Usage:
lwmult [-m n] files

Description:
Multiplies the argument of linewidth in a postscript file and
renames the old files to the same file name with an additional
tilde character.

Options:
-m n Set the multiplication factor to n (a floating point number).
Default value is 2.

Author:
Dov Grobgeld 1992-05-24

EOH
; exit;
}
}
$mult=2 unless defined $mult;

$lastLine="";
while(<>) {
# Case of argument for linewidth not over new line
s/(\d+)(\s+setlinewidth)/sprintf("%g$2",$1*$mult)/ie;

# Case of argument and 'setlinewidth' over line boundry
if (/^\s*setlinewidth/) {
$lastLine=~ s/(\d+)\s*\n/sprintf("%g\n",$1*$mult)/ie;
}
print $lastLine;
$lastLine=$_;
print $lastLine if eof;
}

--
___ ___
/ o \ o \
Dov Grobgeld ( o o ) o |
The Weizmann Institute of Science, Israel \ o /o o /
"Where the tree of wisdom carries oranges" | | | |
_| |_ _| |_
Re: axis thickness [message #348 is a reply to message #340] Tue, 26 May 1992 06:35 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
In article <1992May26.111208.23708@urz.unibas.ch>, hofer@urz.unibas.ch (Remo Hofer) writes...
> How can you define the line thickness of the axis in a plot or contour
> statement? !P.THICK and the keyword THICK have no effect to the axis
> plotting into a postscript file. Thanks in advance for any help.

For the axes you need to set !X.THICK and !Y.THICK as well.

Bill Thompson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Unable to allocate enough colors.
Next Topic: Re: line thick (Spelling mistake correction)

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

Current Time: Wed Oct 08 16:50:34 PDT 2025

Total time taken to generate the page: 0.00670 seconds