[pstricks] axis labels over a line

mathias legrand legrand.mathias at gmail.com
Tue Feb 2 14:51:45 CET 2010


Hi,

here is the piece of code of interest.

Example 1 : bad
\psset{xunit=1cm, yunit=1cm}
\begin{pspicture}(0,-1)(5,2)
\psline[linecolor=red,linewidth=2pt]{c-c}(-0.6,-0.15)(2,1)(3.25,-0.5)(5,2)
\psaxes[tickstyle=bottom,labelsep=1pt,comma](0,0)(5,2)
\end{pspicture}

Example 2 : good (but not automatic)
\psset{xunit=1cm, yunit=1cm}
\begin{pspicture}(0,-1)(5,2)
\psline[linecolor=red,linewidth=2pt]{c-c}(-0.6,-0.15)(2,1)(3.25,-0.5)(5,2)
\pscircle[fillstyle=solid,fillcolor=white,linewidth=0pt,linecolor=white](3,-0.25){0.2}
\pscircle[fillstyle=solid,fillcolor=white,linewidth=0pt,linecolor=white](-0.25,0){0.2}
\psaxes[tickstyle=bottom,labelsep=1pt,comma](0,0)(5,2)
\end{pspicture}


Thanks



> Could you maybe show a small sample ?
> What is really wrong? For a  label  the border command does not make
> much sense.
> There is always a way out: Construct the axis manually (not using the
> psaxes command) - then of course the line can be drawn with a border
> or the labels could be places with rput*/uput*.
> hh
>
> Date sent:      	Tue, 02 Feb 2010 05:56:43 -0500
> From:           	mathias legrand<legrand.mathias at gmail.com>
> To:             	pstricks at tug.org
> Subject:        	[pstricks] axis labels over a line
> Send reply to:  	Graphics with PSTricks<pstricks at tug.org>
> 	<mailto:pstricks-request at tug.org?subject=unsubscribe>
> 	<mailto:pstricks-request at tug.org?subject=subscribe>
>
>    
>> Hi all,
>>
>> sometimes with pstricks, an axis label of color black is positioned over
>> a line
>> making it not very easy to visualize. Is there a strategy to avoid that
>> behaviour?
>> some thing similar to the option border for \psline?
>>
>> thank you
>>
>> _______________________________________________
>> PSTricks mailing list
>> PSTricks at tug.org
>> http://tug.org/mailman/listinfo/pstricks
>> archive: http://www.tug.org/pipermail/pstricks/
>>      
>
>
>    



More information about the PSTricks mailing list