[pstricks] Trouble with \psSurface and direction of the hue

David Tarazona daleotar at gmail.com
Sat Oct 30 20:03:25 CEST 2010


Yes, exactly that's what i'm looking for. Thank you so much... oh yes, for
the information of the mailing list, the next image represents the change
that results from adding
"tablez=0.8 0.01 4 {} for,  zcolor=.666 0" or "zcolor=any hue" to the
options for \psSurface:

<a target='_blank' href='http://img263.imageshack.us/i/fancyg.png/'><img
src='http://img263.imageshack.us/img263/1945/fancyg.th.png' border='0'/></a>

Oh yes, I just remembered, how I can see the solids not in perspective but
in orthogonal projection???

I appreciate again if you know how to do it...

thanks again for the support

2010/10/30 Herbert Voss <Herbert.Voss at fu-berlin.de>

> Am 30.10.2010 10:20, schrieb David Tarazona:
> > Hello, my problem is this
> > I'm sure you've seen the graphs generated by matlab using the surf
> command
> > that works like \ psSurface. My problem is that I couldnt change the hue
> > will not appear on the X axis, ie if i see a XY view is that the gradient
> is
> > about the X but I could not find a way to make the be degraded on the Y
> axis
> > or Z axis (which is how it shows matlab).
> > thanks to solve my doubt.
> > Another issue than I have is that i want the same hue/gradient/degraded
> for
> > 2 faces of the surface... The code of my function is:
>
> please provide full working examples, not only fragments.
>
> > \psSurface
> > [ngrid=72 72,linewidth=0.01pt,algebraic,hue=0
> > 1](-3.1416,-3.1416)(3.1416,3.1416)
> > {(3-2*cos(x+y)-2*cos(x)+2*cos(y))^(1/2)}
> >
> > if you see on the surface there are two "sub-peaks".If you graph this on
> > matlab you'll see that the "sub-peaks" can be easily differentiated of
> the
> > other parts of the surface like the maximum values thanks to the "color
> > gradient" through the Z axis, not through the X or Y axis, i mean, on
> matlab
> > you'll see by default the 2 sub-peaks on blue and the maximum values on
> > red...
> >
> > I hope you understand what I mean...
>
> no, I have no matlab ...
> Maybe, that your are looking for something like this:
>
>
> \documentclass{minimal}
> \usepackage{pst-eucl,pst-solides3d}
> \begin {document}
>
>
> \psset{Decran=20}
> \begin{pspicture}(-5,-3)(5,5)
> \psSurface[ngrid=72 72,linewidth=0.01pt,algebraic,
>   tablez=0.5 .1 3.5 {} for,
>  zcolor=(Red) (Blue)](-3.1416,-3.1416)(3.1416,3.1416)%
>   {(3-2*cos(x+y)-2*cos(x)+2*cos(y))^(1/2)}
> \end{pspicture}
>
> \end{document}
>
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
>



-- 
Att,

David Tarazona
Desarrollos Inteligentes - Mechcorp Ltda.
Tel: (57)(1) 700-6364
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20101030/bde3b7c5/attachment.html>


More information about the PSTricks mailing list