Spin/Rotate your plot!

Spins your plot in the z-axis!
773 Downloads
Updated 28 Feb 2013

View License

Why so stiff? Take a spin!

But why spin? Because you can.

This class allows you to spin your 3D plots. At this time, only mesh and surf are supported.

Your SURFACEPLOT object will have a black background by default. This results in your plot automagically turn awesome.

If you're boring and stiff, you may disable the black in the constructor method. But you wouldn't do that, would you?

Side Note: The function is currently effective only on mesh and surf
plots. Maybe I'll add in more as time comes. Maybe I'll get distracted
whenever I set out on this task. Maybe...

--------------------------------------
Having benefited from this community over the years, this is my first file contribution. I have learned much from many of you - thank you very much!

Feel free to use and improve as you see fit. Because you can. I would love to see how far you can mod this code.

I got this idea on Wednesday, when I was delivery a joint seminar with our partners from the test and measurement industry. There was this really cool visualisation on the Rohde & Schwarz oscilloscope that caught my eye.

It was a spectral plot of a sweep signal, with the past frames fading in the background. And so I thought, "Hey, let's do something cool with MATLAB visuals too!"

MATLAB is a really powerful product, but there are times where we want to see some cool graphics. Just because.

I have done some fancy MATLAB stuff in the past (including the fading scan effects!), and I hope I can refine my code and submit them bit by bit.

Cite As

Yu Ang Tan (2024). Spin/Rotate your plot! (https://www.mathworks.com/matlabcentral/fileexchange/40572-spin-rotate-your-plot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on 3-D Scene Control in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0