[pstricks] PSTricks Digest, Vol 104, Issue 16, stacked plot

grivet grivet at cnrs-orleans.fr
Mon Sep 26 15:28:17 CEST 2011


Le 24/09/2011 12:00, pstricks-request at tug.org a écrit :
> Send PSTricks mailing list submissions to
> 	pstricks at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://tug.org/mailman/listinfo/pstricks
> or, via email, send a message with subject or body 'help' to
> 	pstricks-request at tug.org
>
> You can reach the person managing the list at
> 	pstricks-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PSTricks digest..."
>
>
> Today's Topics:
>
>     1. stacked plot (grivet)
>     2. Re: stacked plot (Herbert Voss)
>     3. transparency (Doris Behrendt)
>     4. Re: transparency (Herbert Voss)
>     5. font of labels of axes (Doris Behrendt)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 23 Sep 2011 16:17:14 +0200
> From: grivet<grivet at cnrs-orleans.fr>
> To: pstricks at tug.org
> Subject: [pstricks] stacked plot
> Message-ID:<4E7C94EA.40705 at cnrs-orleans.fr>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
> I am looking for a way to make up a so-called stacked plot using
> pstricks. I have a series of files, each holding a digitized spectrum
> (intensity vs. frequency). Each spectrum was recorded under a different
> value of a parameter (temperature).
>
> I wish to plot the lot in a single figure, spectrum #n being offset from
> spectrum #n+1, in x and y,  to give an impression
> of 3D. Further, to make for a clearer plot, hidden lines should be
> removed, so that contiguous spectra do not tanglle together.
>
> A rather involved example of what I am after is shown as fig 3 of
>
> http://www.mol.biol.ethz.ch/groups/wider_group/publications/WIDERjmr178.72.pdf
>
> I would be grateful for any suggestion
> JP Grivet
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 23 Sep 2011 18:45:20 +0200
> From: Herbert Voss<Herbert.Voss at FU-Berlin.DE>
> To: pstricks at tug.org
> Subject: Re: [pstricks] stacked plot
> Message-ID:<4E7CB7A0.4080906 at FU-Berlin.DE>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Am 23.09.2011 16:17, schrieb grivet:
>
>> I am looking for a way to make up a so-called stacked plot using
>> pstricks. I have a series of files, each holding a digitized spectrum
>> (intensity vs. frequency). Each spectrum was recorded under a different
>> value of a parameter (temperature).
>>
>> I wish to plot the lot in a single figure, spectrum #n being offset from
>> spectrum #n+1, in x and y, to give an impression
>> of 3D. Further, to make for a clearer plot, hidden lines should be
>> removed, so that contiguous spectra do not tanglle together.
>>
>> A rather involved example of what I am after is shown as fig 3 of
>> http://www.mol.biol.ethz.ch/groups/wider_group/publications/WIDERjmr178.72.pdf
> I would plot it with package pst-3dplot. With \rput{} you can
> place your object where you want. Look into the documentation.
> However, if you could provide an example data file I can say more
>
> Herbert
>
I have made two attempts, following your hint.
(a) with a formula definition, as follows:

   \begin{pspicture}(12,6)
   \psset{Beta=15}
   
\psplotThreeD[algebraic=true,plotstyle=line,yPlotpoints=5,xPlotpoints=50,drawStyle=xLines,hiddenLine=true]%
   (2,10)(10,15){2/(1+(x-6)*(x-6))}
   \end{pspicture}

This code plots five lorentzian lines suitably offset from each other, 
but the option hiddenLine=true is not active.

(b) With a data file (three lorentz shapes with increasing offset, 
stored a a three-column matrix x,z,y):

      \begin{pspicture}(-6,0)(0,6)
      \psset{Beta=15}
      
\fileplotThreeD[plotstyle=line,yPlotpoints=3,xPlotpoints=101,drawStyle=xLines,hiddenLine=true]%
      {stpl1.dta}
      \end{pspicture}

This again plots three curves; hiddenLines still has no effet and the 
end point of curve i is connected to the
first point of curve i+1. The data file is attached.

Thanks for your time and help.



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stpl1.dta
URL: <http://tug.org/pipermail/pstricks/attachments/20110926/070f367f/attachment.ksh>


More information about the PSTricks mailing list