[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Checking for 2d or 3d plots
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Checking for 2d or 3d plots |
Date: |
Thu, 5 Aug 2010 09:37:10 -0500 |
2010/8/5 Shai Ayal <address@hidden>:
> 2. you can check and see if the actual data lies on a plane (x,y,z
> data property of the axes, and also the auto calculated axis limits).
Right, this is what I still don't get. The axes::properties class
doesn't have any member that says anything like "data" except for
dataaspectratio and dataaspectratiomode, nor did it inherit such a
member from base_properties. So how do I get at this data? Should I do
on an axis::properties object foo, something like
auto data = foo.get("data"); //Oh, btw, can we start using C++0x yet?
?
> Disadvantage: maybe someone would want to rotate 2d data
Does anyone really say, "I wish I could look at my 2d plot at the
bottom of a 3d bounding axis box, at an interesting non-orthogonal
projection"?
If 2d rotation really is desired, it should be that: rotate
2-dimensionally only on the x-y plane, not 3-dimensionally, and for
that I still need to check if the plot is 2d or not.
To look at the whole thing another way, how does whoever decide that
when I say "plot" it should do a 2d plot and put the camera at the top
and when I say "surf" it puts the camera at an angle away from the
top? It should make sense that at the point where this decision is
made, an is3d bool should be set that can be used for subsequent
decisions.