Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f52c5db

Browse files
authored
Merge pull request plotly#731 from plotly/facet_grid
Facet grid FigureFactory
2 parents 004456e + 036c2fa commit f52c5db

File tree

9 files changed

+1584
-218
lines changed

9 files changed

+1584
-218
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [2.0.10] - 2017-06-09
6+
### Added
7+
- The figure_factory can now create facet grids with `.create_facet_grid`. Check it out with:
8+
```
9+
import plotly.figure_factory as ff
10+
help(ff.create_facet_grid)
11+
```
12+
513
## [2.0.9] - 2017-05-30
614
### Fixed
715
- Fixes issue [https://github.com/plotly/plotly.py/issues/721](https://github.com/plotly/plotly.py/issues/721). There was an issue when running `import plotly` with old versions of the `decorator` package. We now require installations to use at least version `4.0.6` of the `decorator` package. See [https://github.com/micheles/decorator/blob/master/CHANGES.md](https://github.com/micheles/decorator/blob/master/CHANGES.md) for the `decorator` package changelog.

plotly/colors.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
Functions that manipulate colors and arrays of colors.
66
7+
-----
78
There are three basic types of color types: rgb, hex and tuple:
89
910
rgb - An rgb color is a string of the form 'rgb(a,b,c)' where a, b and c are
@@ -16,6 +17,19 @@
1617
tuple - A tuple color is a 3-tuple of the form (a,b,c) where a, b and c are
1718
floats between 0 and 1 inclusive.
1819
20+
-----
21+
Types of colormap:
22+
There are typically two main types of colormaps that exist: numerical and
23+
categorical colormaps.
24+
25+
Numerical colormaps are used when a the coloring column being used takes a
26+
spectrum of values or numbers. Alternatively, a categorical colormap is used
27+
to assign a specific value in a color column to a specific color everytime it
28+
appears in the plot at hand. For instance, a column of strings in a dataframe
29+
would naturally use a categorical colormap. You can choose however to use a
30+
categorical colormap with a column of numbers. Be careful though, as if you
31+
have a large set of unique numbers in your column you'll get a lot of colors.
32+
1933
"""
2034
from __future__ import absolute_import
2135

plotly/figure_factory/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from plotly.figure_factory._candlestick import create_candlestick
99
from plotly.figure_factory._dendrogram import create_dendrogram
1010
from plotly.figure_factory._distplot import create_distplot
11+
from plotly.figure_factory._facet_grid import create_facet_grid
1112
from plotly.figure_factory._gantt import create_gantt
1213
from plotly.figure_factory._ohlc import create_ohlc
1314
from plotly.figure_factory._quiver import create_quiver

0 commit comments

Comments
 (0)