[pstricks] LineToXAxis and negative numbers and axises.

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Oct 31 20:01:58 CET 2011


Am 31.10.2011 12:31, schrieb Dirk-Willem van Gulik:
> I am struggling a bit with LineToXAxis and negative numbers.
>
> LineToXAxis works well for positive numbers - even when the axis is non-zero  (figure 1) or even negative (figure 2 in below); lines are drawn to the bottom.
>
> But when the numbers are mostly negative - LineToXAxis seems to draw to 0 - even though Oy is set.
>
> Example below (and in http://pastebin.com/wjtErgNU, result on http://people.apache.org/~dirkx/wjtErgNU.pdf). It is figure 3 where it goes wrong.
>
> The use case is a Spectrum (where -120 dBm is a typical noise floor; and signals go 'up' to -20 dBm). So one would want all lines in figure 3 to be drawn to -120.
>
> Any suggestions as to what I am doing wrong ?

the next versions of pstricks.pro and pst-plot.tex
will change that behaviour. They are available from
http://texnik.dante.de or hopefully tomorrow with the
next TeXLive update

Herbert


More information about the PSTricks mailing list