Changeset 4318:9749e933ad06
Legend:
- Unmodified
- Added
- Removed
-
sage/plot/all.py
r3581 r4318 4 4 polar_plot, contour_plot, arrow, 5 5 plot_vector_field, matrix_plot, bar_chart, 6 is_Graphics) 6 is_Graphics, 7 show_default) 7 8 8 9 from plot3d import (Graphics3d, point3d, line3d) -
sage/plot/plot.py
r4308 r4318 141 141 EMBEDDED_MODE = False 142 142 SHOW_DEFAULT = False 143 144 def show_default(default=None): 145 """ 146 Set the default for showing plots using the following commands: 147 plot, parametric_plot, polar_plot, and list_plot. 148 149 If called with no arguments, returns the current default. 150 151 EXAMPLES: 152 The default starts out as False: 153 sage: show_default() 154 False 155 156 We set it to True. 157 sage: show_default(True) 158 159 We see that it is True. 160 sage: show_default() 161 True 162 163 Now certain plot commands will display their plots by default. 164 165 Turn of default display. 166 sage: show_default(False) 167 168 """ 169 global SHOW_DEFAULT 170 if default is None: 171 return SHOW_DEFAULT 172 SHOW_DEFAULT = bool(default) 143 173 144 174 do_verify = True … … 2433 2463 tmin -- start value of t 2434 2464 tmax -- end value of t 2435 show -- whether or not to show the plot immediately (default: True) 2465 show -- bool or None 2466 (default: use the default as set by the show_default command) 2467 whether or not to show the plot immediately 2436 2468 other options -- passed to plot. 2437 2469
Note: See TracChangeset
for help on using the changeset viewer.
