Manipulating a Surface and Color Contours

  • Context: Mathematica 
  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Color Surface
Click For Summary
SUMMARY

The discussion focuses on manipulating surface and color contours in Mathematica using the Manipulate function. The user experiences a delay in the display of color contours when playing a video, as opposed to immediate updates when using a slider. The provided code utilizes ParametricPlot3D to visualize the surface, but the contour lines lag in rendering. The user seeks a solution to display contours more responsively during video playback.

PREREQUISITES
  • Familiarity with Mathematica programming language
  • Understanding of ParametricPlot3D functionality
  • Knowledge of Manipulate function in Mathematica
  • Basic concepts of surface plotting and color contours
NEXT STEPS
  • Explore optimization techniques for Manipulate in Mathematica
  • Investigate real-time rendering options for ParametricPlot3D
  • Learn about dynamic updating of graphics in Mathematica
  • Research performance tuning for complex visualizations in Mathematica
USEFUL FOR

Mathematica users, data visualization specialists, and anyone interested in enhancing the responsiveness of graphical representations in computational environments.

member 428835
Hi PF!

I'm trying to have color contours of a surface and then manipulate the surface. Using the sample code below, we see that if you step forward Mathematica plots the surface and then also the color contours. However, rather than stepping forward, if we play the video the color contours don't show. Any help would be amazing!

Manipulate[
Show[ParametricPlot3D[{2 s t z, 3 s t, s^2}, {s, -1, 1}, {z, 0, 1},
PlotStyle -> {{Blue, Lighting -> "Neutral", Specularity[Blue, 0.3],
Opacity[0.9]}},
MeshStyle -> {{Yellow, Thick}, {Yellow, Thick}}]], {t, 0, 1}]
 
Last edited by a moderator:
Physics news on Phys.org
It seems that the contour lines take some time to appear: if you move the slider, you will see the surface change immediately, but it takes a fraction of a second for the contour to be drawn when you stop. I played around with a few parameters, but unfortunately, I couldn't find a way to have the contour be displayed before it changes to the next value of t.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 3 ·
Replies
3
Views
11K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K