@@ -140,14 +140,14 @@ supported file type): ``dot -Tpdf iris.dot -o iris.pdf``.
140
140
>>> import os
141
141
>>> os.unlink('iris.dot')
142
142
143
- Alternatively, if we have Python module ``pydot `` installed, we can generate
143
+ Alternatively, if we have Python module ``pydotplus `` installed, we can generate
144
144
a PDF file (or any other supported file type) directly in Python::
145
145
146
146
>>> from sklearn.externals.six import StringIO # doctest: +SKIP
147
- >>> import pydot # doctest: +SKIP
147
+ >>> import pydotplus # doctest: +SKIP
148
148
>>> dot_data = StringIO() # doctest: +SKIP
149
149
>>> tree.export_graphviz(clf, out_file=dot_data) # doctest: +SKIP
150
- >>> graph = pydot .graph_from_dot_data(dot_data.getvalue()) # doctest: +SKIP
150
+ >>> graph = pydotplus .graph_from_dot_data(dot_data.getvalue()) # doctest: +SKIP
151
151
>>> graph.write_pdf("iris.pdf") # doctest: +SKIP
152
152
153
153
The :func: `export_graphviz ` exporter also supports a variety of aesthetic
@@ -162,7 +162,7 @@ render these plots inline using the `Image()` function::
162
162
class_names=iris.target_names, # doctest: +SKIP
163
163
filled=True, rounded=True, # doctest: +SKIP
164
164
special_characters=True) # doctest: +SKIP
165
- >>> graph = pydot .graph_from_dot_data(dot_data.getvalue()) # doctest: +SKIP
165
+ >>> graph = pydotplus .graph_from_dot_data(dot_data.getvalue()) # doctest: +SKIP
166
166
>>> Image(graph.create_png()) # doctest: +SKIP
167
167
168
168
.. only :: html
0 commit comments