Python matplotlib.spines.Spine() Examples
The following are 10
code examples of matplotlib.spines.Spine().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
matplotlib.spines
, or try the search function
.

Example #1
Source File: canvas.py From catplot with MIT License | 6 votes |
def _set_axes(self): """ Set some essential attributes of axes in canvas. We put these attribute settings here for code reuse. """ # Add an axes to figure. # NOTE: here we use the canvas facecolor as the axes facecolor. self.axes = self.figure.add_subplot(111, facecolor=self.facecolor) # Change the spine color of axes. if self.edgecolor: for child in self.axes.get_children(): if isinstance(child, Spine): child.set_color(self.edgecolor) # Set axe ticks. if self.x_ticks is not None: self.axes.set_xticks(self.x_ticks) if self.y_ticks is not None: self.axes.set_yticks(self.y_ticks)
Example #2
Source File: test_skew.py From neural-network-animation with MIT License | 5 votes |
def __init__(self, axes, spine_type): if spine_type == 'bottom': loc = 0.0 else: loc = 1.0 mspines.Spine.__init__(self, axes, spine_type, mpath.Path([(13, loc), (13, loc)]))
Example #3
Source File: test_skew.py From neural-network-animation with MIT License | 5 votes |
def _gen_axes_spines(self): spines = {'top': SkewSpine(self, 'top'), 'bottom': mspines.Spine.linear_spine(self, 'bottom'), 'left': mspines.Spine.linear_spine(self, 'left'), 'right': mspines.Spine.linear_spine(self, 'right')} return spines
Example #4
Source File: skewt.py From python3_ios with BSD 3-Clause "New" or "Revised" License | 5 votes |
def _gen_axes_spines(self): spines = {'top': SkewSpine.linear_spine(self, 'top'), 'bottom': mspines.Spine.linear_spine(self, 'bottom'), 'left': mspines.Spine.linear_spine(self, 'left'), 'right': mspines.Spine.linear_spine(self, 'right')} return spines
Example #5
Source File: test_skew.py From python3_ios with BSD 3-Clause "New" or "Revised" License | 5 votes |
def _gen_axes_spines(self): spines = {'top': SkewSpine.linear_spine(self, 'top'), 'bottom': mspines.Spine.linear_spine(self, 'bottom'), 'left': mspines.Spine.linear_spine(self, 'left'), 'right': mspines.Spine.linear_spine(self, 'right')} return spines
Example #6
Source File: polar_axes.py From innstereo with GNU General Public License v2.0 | 5 votes |
def _gen_axes_spines(self): path = Wedge((0, 0), 1.0, 270, 360).get_path() spine = mspines.Spine(self, 'circle', path) spine.set_patch_circle((0.5, 0.5), 0.5) return {'wedge':spine}
Example #7
Source File: test_skew.py From ImageFusion with MIT License | 5 votes |
def __init__(self, axes, spine_type): if spine_type == 'bottom': loc = 0.0 else: loc = 1.0 mspines.Spine.__init__(self, axes, spine_type, mpath.Path([(13, loc), (13, loc)]))
Example #8
Source File: test_skew.py From ImageFusion with MIT License | 5 votes |
def _gen_axes_spines(self): spines = {'top': SkewSpine(self, 'top'), 'bottom': mspines.Spine.linear_spine(self, 'bottom'), 'left': mspines.Spine.linear_spine(self, 'left'), 'right': mspines.Spine.linear_spine(self, 'right')} return spines
Example #9
Source File: test_skew.py From coffeegrindsize with MIT License | 5 votes |
def _gen_axes_spines(self): spines = {'top': SkewSpine.linear_spine(self, 'top'), 'bottom': mspines.Spine.linear_spine(self, 'bottom'), 'left': mspines.Spine.linear_spine(self, 'left'), 'right': mspines.Spine.linear_spine(self, 'right')} return spines
Example #10
Source File: test_skew.py From twitter-stock-recommendation with MIT License | 5 votes |
def _gen_axes_spines(self): spines = {'top': SkewSpine.linear_spine(self, 'top'), 'bottom': mspines.Spine.linear_spine(self, 'bottom'), 'left': mspines.Spine.linear_spine(self, 'left'), 'right': mspines.Spine.linear_spine(self, 'right')} return spines