Skip to content

Commit f658c1a

Browse files
committed
show() method
1 parent abd0046 commit f658c1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ggplot/ggplot.py

+7
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ def __repr__(self):
123123
plt.show()
124124
return "<ggplot: (%d)>" % self.__hash__()
125125

126+
def show(self):
127+
"""
128+
Builds and displays your plot.
129+
"""
130+
self.make()
131+
plt.show()
132+
126133
def _handle_index(self):
127134
if '__index__' in self._aes.values():
128135
self.data['__index__'] = self.data.index

0 commit comments

Comments
 (0)