-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: rotate 3D plots #47
Comments
I think I see what additions would be needed. At the moment I'm having trouble compiling Owl ("Unbound value Eigen.Dense.S.gemm" in owl_dense_common.ml--I'll investigate further), so for now I thought I'd just document what additions I think would be needed to allow different perspectives on 3D plots. In owl_plot.ml, one would add the following. In mutable altitude : float;
mutable azimuth : float; And somewhere in the same file: let set_altitude h s = (h.pages.(h.current_page)).altitude <- s
let set_azimuth h s = (h.pages.(h.current_page)).azimuth <- s and in the definition of And add signatures and comments for See http://plplot.sourceforge.net/docbook-manual/plplot-html-5.12.0/plw3d.html and http://plplot.sourceforge.net/docbook-manual/plplot-html-5.12.0/plw3d.html . |
Yes, adding more fields to page type can be one solution. Another possible solution is incorporating the orientation parameters into the plot functions. You might already notice that Owl caches all the drawing operations then executes them one by one in the final stage. So it might be possible to But this is just my current thought, I don't know myself whether it works or not. Or if that is really a cleaner solution comparing to add more fields to the page type. |
OK, I'll look into those possibilities. |
I have The altitude and azimuth are used by the plplot function It makes some sense to store About passing altitude and azimuth to Summary: At present, the optional parameters for
I guess for me, personally, I'm not sure that it makes sense to have optional What do you think? No need to comment immediately if you're busy, of course. |
Thinking about it further, it seems like it would be very convenient for experimentation in utop if |
This might be planned anyway--I know that work on the plot routines are in progress--but it would be helpful to be able to specify the orientation of 3D plots. Thanks for including the plot routines. I just took a look at plplot, and I appreciate the way in which Owl greatly simplifies usage, as Tutorial 4 notes.
The text was updated successfully, but these errors were encountered: