Skip to content

Commit a1e6ec6

Browse files
committed
Bugfixes: initialize warnings
Signed-off-by: Matthias Kümmerer <matthias@matthias-k.org>
1 parent 1c93db7 commit a1e6ec6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ggplot/geoms/geom_linerange.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class geom_linerange(geom):
1818
_aes_renames = {'size': 'linewidth', 'linetype': 'linestyle'}
1919
_units = {'alpha', 'color', 'linestyle'}
2020

21+
def __init__(self, *args, **kwargs):
22+
super(geom_linerange, self).__init__(*args, **kwargs)
23+
self._warning_printed = False
24+
2125
def _plot_unit(self, pinfo, ax):
2226
# If x is categorical, calculate positions to plot
2327
categorical = is_categorical(pinfo['x'])

ggplot/geoms/geom_pointrange.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ class geom_pointrange(geom):
2020
_aes_renames = {'size': 'linewidth', 'linetype': 'linestyle', 'shape': 'marker', 'fill': 'facecolor'}
2121
_units = {'alpha', 'color', 'linestyle', 'marker'}
2222

23+
def __init__(self, *args, **kwargs):
24+
super(geom_pointrange, self).__init__(*args, **kwargs)
25+
self._warning_printed = False
26+
2327
def _plot_unit(self, pinfo, ax):
2428
# If x is categorical, calculate positions to plot
2529
categorical = is_categorical(pinfo['x'])

0 commit comments

Comments
 (0)