Hi Rouben,
I see. There is another sort of scaling which is typically working together
with a non-empty scale mode: the data scaling. Changing the domain
implicitly changes the *data* range - and that range is used to set up
internal coordinate transformations.
Adding 'disabledatascaling' will restore the proper layout. This, however,
will require a different 'scale' (like scale=100).
I have some ideas what's going on with that bug and I will report progress.
I typically create some unstable ready-to-run installation from pgfplots -
perhaps I can provide a fix to you eventually.
Best regards
Christian
2012/4/28 Rouben Rostamian <rostam...@umbc.edu>
> Hello Christian, your latest suggestions produce a correct
> sphere now. Thanks.
>
> However we have a new problem. Let's plot the sphere:
>
> \documentclass{article}
> \usepackage{pgfplots}
> \begin{document}
> \begin{tikzpicture}
> \begin{axis}[view={60}{30}, scale mode=none, scale=0.2]
> \addplot3[surf, z buffer=sort, domain=0:180, y domain=0:360]
> ({sin(x)*cos(y)},
> {sin(x)*sin(y)},
> {cos(x)}
> );
> \end{axis}
> \end{tikzpicture}
> \end{document}
>
> This works just fine. However if we change domain=0:180 to
> domain=30:180 we get something which is drastically distorted.
>
> I have tried this with pgf 2.10 and pgfplots 1.5.1.
>
> Rouben
>
> ---- original message -------------------------------------------
> Date: Sat, 28 Apr 2012 11:02:02 +0200
> To: Rouben Rostamian <rostam...@umbc.edu>, 'PGFplots mailing list'
> <pgfplots-features@lists.sourceforge.net>
> Subject: Re: Plotting a sphere in pgfplots
>
> Hi Rouben,
>
> I can confirm that it is some scaling/projection issue.
>
> In the meantime, you may be interested in the option combination
>
> \begin{axis}[...,
> scale mode=none,
> scale=0.5,
> ...
> ]
>
> (without! axis equal).
>
> This will disable most scaling mechanisms, and will use the initial
> orthogonal projection as returned from the 'view' key. I will look
> into the root cause of the problem.
>
> Best regards
>
> Christian
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features