[metapost] TeX formulas and withpen
Петр Калинин
petr at kalinin.nnov.ru
Fri Jan 1 21:31:25 CET 2010
Hello,
After my question here in October about strange line thickness in
gnuplot's generated mp code, I have submitted the correction to
gnuplot's bugtracker, and it has been applied. So gnuplot should now
generate better pictures with metapost.
---------- Forwarded message ----------
From: SourceForge.net <noreply at sourceforge.net>
Date: 2009/12/31
Subject: [ gnuplot-Patches-2871767 ] Metapost: put_text: wrong line thickness
To: noreply at sourceforge.net
Patches item #2871767, was opened at 2009-10-02 02:48
Message generated for change (Settings changed) made by sfeam
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=302055&aid=2871767&group_id=2055
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Petr Kalinin (pkalinin)
Assigned to: Nobody/Anonymous (nobody)
Summary: Metapost: put_text: wrong line thickness
Initial Comment:
I'm using Gnuplot 4.2 on Windows XP and Debian Linux.
The following simple file
set terminal mp prologues 3
set output "test.mp"
plot sin(x) linewidth 3 title "$a \\over b$"
produces a plot with a too thick line in the fraction in the key. The
same is with other rules in formulas, for example, the horizontal rule
in a square root sign.
This seems to root from the fact that metapost terminal sets the line
thickness for plots via drawoptions, and then uses
draw GPtext ...
command to place the text. The draw inherits options from drawoptions,
which results in altered thicknesses of lines.
If I replace this command by
addto currentpicture also GPtext ...
(that is, if I replace line 549 of metapost.trm from
draw GPtext shifted (x,y)\n\
to
addto currentpicture also GPtext shifted (x,y)\n\
)
the line in the fraction is drawn as thick as it should be.
The patch is attached.
----------------------------------------------------------------------
>Comment By: Ethan Merritt (sfeam)
Date: 2009-12-30 21:38
Message:
Added to CVS
thanks
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=302055&aid=2871767&group_id=2055
--
Petr Kalinin,
petr at kalinin.nnov.ru
More information about the metapost
mailing list