You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/visualization.rst
+10-41
Original file line number
Diff line number
Diff line change
@@ -237,13 +237,9 @@ To get horizontal bar plots, use the ``barh`` method:
237
237
Histograms
238
238
~~~~~~~~~~
239
239
240
-
.. versionadded:: 0.17.0
241
-
242
-
Histogram can be drawn by using the :meth:`DataFrame.plot.hist` and :meth:`Series.plot.hist` methods.
243
-
244
240
.. versionadded:: 0.15.0
245
241
246
-
Histogram can be drawn by using the ``plot(kind='hist')`` method.
242
+
Histogram can be drawn by using the :meth:`DataFrame.plot.hist` and :meth:`Series.plot.hist` methods.
247
243
248
244
.. ipython:: python
249
245
@@ -342,16 +338,10 @@ The ``by`` keyword can be specified to plot grouped histograms:
342
338
Box Plots
343
339
~~~~~~~~~
344
340
345
-
Boxplot can be drawn calling :meth:`Series.plot.box` and :meth:`DataFrame.plot.box`,
346
-
or :meth:`DataFrame.boxplot` to visualize the distribution of values within each column.
347
-
348
-
.. versionadded:: 0.17.0
349
-
350
-
:meth:`DataFrame.plot.box` and :meth:`Series.plot.box` can now be used to draw boxplot.
351
-
352
341
.. versionadded:: 0.15.0
353
342
354
-
``plot`` method now supports ``kind='box'`` to draw boxplot.
343
+
Boxplot can be drawn calling :meth:`Series.plot.box` and :meth:`DataFrame.plot.box`,
344
+
or :meth:`DataFrame.boxplot` to visualize the distribution of values within each column.
355
345
356
346
For instance, here is a boxplot representing five trials of 10 observations of
357
347
a uniform random variable on [0,1).
@@ -481,7 +471,7 @@ When ``subplots=False`` / ``by`` is ``None``:
481
471
482
472
* if ``return_type`` is ``'dict'``, a dictionary containing the :class:`matplotlib Lines <matplotlib.lines.Line2D>` is returned. The keys are "boxes", "caps", "fliers", "medians", and "whiskers".
483
473
This is the default of ``boxplot`` in historical reason.
484
-
Note that both ``plot.box()`` and ``plot(kind'box')`` return ``Axes`` as default as the same as other plots.
474
+
Note that ``plot.box()`` returns ``Axes`` by default same as other plots.
485
475
* if ``return_type`` is ``'axes'``, a :class:`matplotlib Axes <matplotlib.axes.Axes>` containing the boxplot is returned.
486
476
* if ``return_type`` is ``'both'`` a namedtuple containging the :class:`matplotlib Axes <matplotlib.axes.Axes>`
487
477
and :class:`matplotlib Lines <matplotlib.lines.Line2D>` is returned
@@ -531,13 +521,10 @@ Compare to:
531
521
Area Plot
532
522
~~~~~~~~~
533
523
534
-
.. versionadded:: 0.17
535
-
536
-
You can create area plots with :meth:`Series.plot.area` and :meth:`DataFrame.plot.area`.
537
-
538
524
.. versionadded:: 0.14
539
525
540
-
You can create area plots with ``Series.plot`` and ``DataFrame.plot`` by passing ``kind='area'``. Area plots are stacked by default. To produce stacked area plot, each column must be either all positive or all negative values.
526
+
You can create area plots with :meth:`Series.plot.area` and :meth:`DataFrame.plot.area`.
527
+
Area plots are stacked by default. To produce stacked area plot, each column must be either all positive or all negative values.
541
528
542
529
When input data contains `NaN`, it will be automatically filled by 0. If you want to drop or fill by different values, use :func:`dataframe.dropna` or :func:`dataframe.fillna` before calling `plot`.
543
530
@@ -572,13 +559,9 @@ To produce an unstacked plot, pass ``stacked=False``. Alpha value is set to 0.5
572
559
Scatter Plot
573
560
~~~~~~~~~~~~
574
561
575
-
.. versionadded:: 0.17.0
576
-
577
-
Scatter plot can be drawn by using the :meth:`DataFrame.plot.scatter` method.
578
-
579
562
.. versionadded:: 0.13
580
563
581
-
You can create scatter plots with ``DataFrame.plot`` by passing ``kind='scatter'``.
564
+
Scatter plot can be drawn by using the :meth:`DataFrame.plot.scatter` method.
582
565
Scatter plot requires numeric columns for x and y axis.
583
566
These can be specified by ``x`` and ``y`` keywords each.
584
567
@@ -645,14 +628,9 @@ See the :meth:`scatter <matplotlib.axes.Axes.scatter>` method and the
645
628
Hexagonal Bin Plot
646
629
~~~~~~~~~~~~~~~~~~
647
630
648
-
.. versionadded:: 0.17.0
649
-
650
-
You can create hexagonal bin plots with :meth:`DataFrame.plot.hexbin`.
651
-
652
631
.. versionadded:: 0.14
653
632
654
-
You can create hexagonal bin plots with :meth:`DataFrame.plot` and
655
-
``kind='hexbin'``.
633
+
You can create hexagonal bin plots with :meth:`DataFrame.plot.hexbin`.
656
634
Hexbin plots can be a useful alternative to scatter plots if your data are
657
635
too dense to plot each point individually.
658
636
@@ -713,13 +691,9 @@ See the :meth:`hexbin <matplotlib.axes.Axes.hexbin>` method and the
713
691
Pie plot
714
692
~~~~~~~~
715
693
716
-
.. versionadded:: 0.17
717
-
718
-
You can create a pie plot with :meth:`DataFrame.plot.pie` or :meth:`Series.plot.pie`.
719
-
720
694
.. versionadded:: 0.14
721
695
722
-
You can create a pie plot with :meth:`DataFrame.plot` or :meth:`Series.plot` with ``kind='pie'``.
696
+
You can create a pie plot with :meth:`DataFrame.plot.pie` or :meth:`Series.plot.pie`.
723
697
If your data includes any ``NaN``, they will be automatically filled with 0.
724
698
A ``ValueError`` will be raised if there are any negative values in your data.
725
699
@@ -892,14 +866,9 @@ You can create a scatter plot matrix using the
892
866
Density Plot
893
867
~~~~~~~~~~~~
894
868
895
-
.. versionadded:: 0.17.0
896
-
897
-
You can create density plots using the :meth:`Series.plot.kde` and :meth:`DataFrame.plot.kde` methods.
898
-
899
869
.. versionadded:: 0.8.0
900
870
901
-
You can create density plots using the Series/DataFrame.plot and
902
-
setting ``kind='kde'``:
871
+
You can create density plots using the :meth:`Series.plot.kde` and :meth:`DataFrame.plot.kde` methods.
0 commit comments