File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 6060# Set option such as $UseVectorizedPlot, and maybe a non-standard Plot3D option.
6161# For now an env variable is simplest.
6262# TODO: work out exactly how to deploy.
63- if os .getenv ("MATHICS3_USE_VECTORIZED_PLOT" , False ):
63+ use_vectorized_plot = os .getenv ("MATHICS3_USE_VECTORIZED_PLOT" , False )
64+ if use_vectorized_plot :
6465 from mathics .eval .drawing .plot3d_vectorized import eval_DensityPlot , eval_Plot3D
6566else :
6667 from mathics .eval .drawing .plot3d import eval_DensityPlot , eval_Plot3D
@@ -489,8 +490,9 @@ def check_plotpoints(steps):
489490 return True
490491 return False
491492
493+ default_plotpoints = (200 , 200 ) if use_vectorized_plot else (7 , 7 )
492494 if plotpoints == "System`None" :
493- plotpoints = ( 7 , 7 )
495+ plotpoints = default_plotpoints
494496 elif check_plotpoints (plotpoints ):
495497 plotpoints = (plotpoints , plotpoints )
496498 if not (
@@ -500,7 +502,7 @@ def check_plotpoints(steps):
500502 and check_plotpoints (plotpoints [1 ])
501503 ):
502504 evaluation .message (expr .get_name (), "invpltpts" , plotpoints )
503- plotpoints = ( 7 , 7 )
505+ plotpoints = default_plotpoints
504506 self .plotpoints = plotpoints
505507
506508 # MaxRecursion Option
You can’t perform that action at this time.
0 commit comments