![]() ![]() class Cartesian2DGridArea ( GridArea ): """Grid area for cartesian 2D plots. setter def show_border ( self, value ): self. ![]() Example usage:: > _area.show_border = True """ return self. FILLCOLOR ) def show_border ( self ): """`bool`: Draw border around axes area. setter def fill_color ( self, value ): self. This requires the ``filled`` attribute to be `True`:: > from nstant import Color > _area.filled = True > _area.fill_color = Color.LightGreen """ return self. ISFILLED ) def fill_color ( self ): """`Color`: Axes area background color. ![]() setter def filled ( self, value ): self. Example usage:: > from nstant import Color > _area.filled = True > _area.fill_color = Color.LightGreen """ return self. _kw ) def filled ( self ): """`bool`: Fill the axes area background color. figure:: /_static/images/grid_area_polar.png :width: 300px :figwidth: 300px """ def _init_ ( self, axes ): self. code-block:: python :emphasize-lines: 15-18 from os import path import tecplot as tp from nstant import PlotType, ThetaMode, Color examples_dir = tp.session.tecplot_examples_directory() datafile = path.join(examples_dir, 'SimpleData', 'IndependentDependent.lpk') dataset = tp.load_layout(datafile) plot = tp.active_frame().plot(PlotType.PolarLine) plot.activate() _axis.mode = ThetaMode.Radians _area.fill_color = Color.Creme grid_area = _area grid_area.filled = True grid_area.fill_color = Color.SkyBlue grid_area.show_border = True tp.export.save_png('grid_area_polar.png', 600, supersample=3). ![]() Style ): """Grid area for polar 2D plots. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |