@@ -65,7 +65,7 @@ class BasePlotter:
6565 Other Parameters
6666 ----------------
6767 dpi : float, optional
68- The resolution of the plot.
68+ The resolution of the plot in "dots per inch" .
6969 Default is ``100.0``.
7070 tight : bool, optional
7171 Produce a plot with limited padding between the plot and the edge of the figure.
@@ -94,8 +94,8 @@ class BasePlotter:
9494
9595 """
9696
97- def __init__ (self , figsize = (16.0 , 12.0 ), dpi = 100.0 , tight = True , axes = None , ** kwargs ):
98- """Initialises a plotter object"""
97+ def __init__ (self , figsize = (16.0 , 12.0 ), dpi = 100.0 , tight = True , axes = None , fontsize = 10 , ** kwargs ):
98+ """Initializes a plotter object"""
9999 self ._axes = None
100100 self .axes = axes
101101 self .tight = tight
@@ -118,18 +118,18 @@ def __init__(self, figsize=(16.0, 12.0), dpi=100.0, tight=True, axes=None, **kwa
118118 'point.edgecolor' : '#000000' ,
119119 'point.edgewidth' : 0.5 ,
120120 'point.textcolor' : '#000000' ,
121- 'point.fontsize' : kwargs . get ( ' fontsize' , 10 ) ,
121+ 'point.fontsize' : fontsize ,
122122
123123 'line.width' : 1.0 ,
124124 'line.color' : '#000000' ,
125125 'line.textcolor' : '#000000' ,
126- 'line.fontsize' : kwargs . get ( ' fontsize' , 10 ) ,
126+ 'line.fontsize' : fontsize ,
127127
128128 'polygon.facecolor' : '#ffffff' ,
129129 'polygon.edgecolor' : '#000000' ,
130130 'polygon.edgewidth' : 0.1 ,
131131 'polygon.textcolor' : '#000000' ,
132- 'polygon.fontsize' : kwargs . get ( ' fontsize' , 10 ) ,
132+ 'polygon.fontsize' : fontsize ,
133133 }
134134
135135 @property
@@ -211,7 +211,7 @@ def bgcolor(self, value):
211211 Parameters
212212 ----------
213213 value : str, tuple
214- The color specififcation for the figure background.
214+ The color specification for the figure background.
215215 Colors should be specified in the form of a string (hex colors) or
216216 as a tuple of normalized RGB components.
217217
@@ -432,7 +432,7 @@ def draw_points(self, points):
432432 * edgecolor (rgb or hex color, optional): The color of the edge of the cicrle. Default is black.
433433 * edgewidth (float, optional): The width of the edge of the circle. Default is 1.0.
434434 * textcolor (rgb or hex color, optional): Color of the text label. Default is black.
435- * fontsize (int, optional): Font size of the text label. Default is 12 .
435+ * fontsize (int, optional): Font size of the text label. Default is ``12`` .
436436
437437 Returns
438438 -------
@@ -457,7 +457,7 @@ def draw_lines(self, lines):
457457 * color (rgb tuple or hex string, optional): The color of the line. Default is black.
458458 * text (str, optional): The text of the label. Default is ``None``.
459459 * textcolor (rgb tuple or hex string, optional): Color of the label text. Default is black.
460- * fontsize (int, optional): The size of the font of the label text. Default is ``` 12``.
460+ * fontsize (int, optional): The size of the font of the label text. Default is ``12``.
461461
462462 Returns
463463 -------
@@ -479,7 +479,7 @@ def draw_polylines(self, polylines):
479479 * points (list): XY(Z) coordinates of the polygon vertices.
480480 * text (str, optional): The text of the label. Default is ``None``.
481481 * textcolor (rgb tuple or hex string, optional): Color of the label text. Default is black.
482- * fontsize (int, optional): The size of the font of the label text. Default is ``` 12``.
482+ * fontsize (int, optional): The size of the font of the label text. Default is ``12``.
483483 * facecolor (rgb tuple or hex string, optional): Color of the polygon face. Default is white.
484484 * edgecolor (rgb tuple or hex string, optional): Color of the edge of the polygon. Default is black.
485485 * edgewidth (float): Width of the polygon edge. Default is ``1.0``.
@@ -504,7 +504,7 @@ def draw_polygons(self, polygons):
504504 * points (list): XY(Z) coordinates of the polygon vertices.
505505 * text (str, optional): The text of the label. Default is ``None``.
506506 * textcolor (rgb tuple or hex string, optional): Color of the label text. Default is black.
507- * fontsize (int, optional): The size of the font of the label text. Default is ``` 12``.
507+ * fontsize (int, optional): The size of the font of the label text. Default is ``12``.
508508 * facecolor (rgb tuple or hex string, optional): Color of the polygon face. Default is white.
509509 * edgecolor (rgb tuple or hex string, optional): Color of the edge of the polygon. Default is black.
510510 * edgewidth (float): Width of the polygon edge. Default is ``1.0``.
@@ -530,7 +530,7 @@ def draw_arrows(self, arrows):
530530 * end (list): XY(Z) coordinates of the end point.
531531 * text (str, optional): The text of the label. Default is ``None``.
532532 * textcolor (rgb tuple or hex string, optional): Color of the label text. Default is black.
533- * fontsize (int, optional): The size of the font of the label text. Default is ``` 6``.
533+ * fontsize (int, optional): The size of the font of the label text. Default is ``6``.
534534 * color (rgb tuple or hex string, optional): Color of the arrow. Default is black.
535535 * width (float): Width of the arrow. Default is ``1.0``.
536536
@@ -562,7 +562,7 @@ def update(self, pause=0.0001):
562562 Parameters
563563 ----------
564564 pause : float
565- Ammount of time to pause the plot in seconds.
565+ Amount of time to pause the plot in seconds.
566566
567567 """
568568 self .axes .autoscale ()
0 commit comments