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: CHANGELOG.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,35 @@
2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [Semantic Versioning](http://semver.org/).
4
4
5
+
## [4.6] - 2020-03-31
6
+
7
+
### Updated
8
+
9
+
- Updated Plotly.js to version 1.53.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/v1.53.0/CHANGELOG.md) for more information on the numerous new features and bug fixes of this release. The main features of the Plotly.js release are
10
+
- Introduce range breaks on date axes (for example, to remove week-ends) via `layout.xaxis.rangebreaks`
11
+
- Introduce a new unified x (or y) hovermode (`layout.hovermode="x unified"`), in which the hover box shows the information for all traces at a given x (or y) position
12
+
- Add `node.customdata` and `link.customdata` to sankey traces
13
+
- Updated [contributing notes](https://github.com/plotly/plotly.py/blob/master/contributing.md) for more explanations on how to contribute to plotly.py [#2290](https://github.com/plotly/plotly.py/pull/2290). Please give feedback on these notes!
14
+
- Updated documentation examples [#2325](https://github.com/plotly/plotly.py/pull/2325), and to show how to color links in Sankey diagrams [#2291](https://github.com/plotly/plotly.py/pull/2291).
15
+
- Special thanks to [@SylwiaOliwia2](https://github.com/SylwiaOliwia2) and [@dangercrow](https://github.com/dangercrow) for improving our documentation!
16
+
17
+
18
+
### Added
19
+
20
+
-`px.imshow` now accepts [`xarray`](http://xarray.pydata.org/) inputs, with metadata being used for axis labels, hover and colorbar [#2166](https://github.com/plotly/plotly.py/pull/2166)
21
+
22
+
23
+
### Fixed
24
+
25
+
- Fixed handling of `opacity` in `px.pie`, `px.funnel_area`, `px.density_mapbox`, `px.funnel`[#2317](https://github.com/plotly/plotly.py/pull/2317), with thanks to [@tvaucher](https://github.com/tvaucher) for the contribution!
26
+
5
27
## [4.5.4] - 2020-03-11
6
28
7
29
### Updated
8
30
9
31
- The documentation of the API https://plot.ly/python-api-reference/ now
10
32
documents the full API [#2243](https://github.com/plotly/plotly.py/pull/2243)
11
-
- New documentation examples for facets [#2235](https://github.com/plotly/plotly.py/pull/2235), legend [#2227](https://github.com/plotly/plotly.py/pull/2227), subplots [#2226](https://github.com/plotly/plotly.py/pull/2226), axes [#2234](https://github.com/plotly/plotly.py/pull/2234) and histograms [#2242](https://github.com/plotly/plotly.py/pull/2242).
33
+
- New documentation examples for facets [#2235](https://github.com/plotly/plotly.py/pull/2235), legend [#2227](https://github.com/plotly/plotly.py/pull/2227), subplots [#2226](https://github.com/plotly/plotly.py/pull/2226), axes [#2234](https://github.com/plotly/plotly.py/pull/2234) and histograms [#2242](https://github.com/plotly/plotly.py/pull/2242).
12
34
Thanks to [@SylwiaOliwia2](https://github.com/@SylwiaOliwia2) for all these great
Copy file name to clipboardExpand all lines: contributing.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
# Contributing
2
2
3
3
Thank you for contributing to plotly.py! We are actively looking for
4
-
diverse contributors, with diverse background and skills.
4
+
diverse contributors, with diverse background and skills.
5
5
6
6
This guide start by a general description of the different ways to contribute
7
7
to plotly.py, then we explain some technical aspects of preparing your
8
-
contribution.
8
+
contribution.
9
9
10
10
## Code of Conduct
11
11
12
-
Please check out the [Code of Conduct](CODE_OF_CONDUCT.md). Don't tl:dr; it,
12
+
Please check out the [Code of Conduct](CODE_OF_CONDUCT.md). Don't tl:dr; it,
13
13
but the general idea is to be nice.
14
14
15
15
## What are the different ways to contribute?
@@ -37,7 +37,7 @@ the structure of the code and of the repository.
37
37
- the `plotly.figure_factory` module provides Python "recipes" for building
38
38
advanced visualizations, such as Gantt charts, annotated heatmaps, etc.
39
39
Figure factories are one of the easiest entry points into plotly.py, since
40
-
they consist of Python-only code, with standalone, well-separated functions.
40
+
they consist of Python-only code, with standalone, well-separated functions.
41
41
However, please note that some of the figure factories become less relevant
42
42
as we are introducing more features into `plotly.express`. Some issues in the
43
43
tracker are labeled "figure_factory" and can be good issues to work on. More
@@ -70,14 +70,14 @@ also contribute to the project by
70
70
- reporting bugs (see below).
71
71
72
72
- submitting feature requests (maybe we'll convince you to contribute it as a
73
-
pull request!).
73
+
pull request!).
74
74
75
75
- helping other users on the [community forum](https://community.plot.ly/).
76
76
Join the list of [nice people](https://community.plot.ly/u) helping other
77
77
plotly users :-).
78
78
79
79
We also recommend reading the great
80
-
[how to contribute to open source](https://opensource.guide/how-to-contribute/)
80
+
[how to contribute to open source](https://opensource.guide/how-to-contribute/)
81
81
guide.
82
82
83
83
## Have a Bug Report?
@@ -98,7 +98,7 @@ Below we explain the technical aspects of contributing. It is not strictly neces
98
98
99
99
Note that if you are modifying a single documentation page, you can do it
100
100
directly on Github by clicking on the "Edit this page on GitHub" link, without
101
-
cloning the repository.
101
+
cloning the repository.
102
102
103
103
## Setup a Development Environment
104
104
@@ -206,6 +206,7 @@ First update the version of the `plotly.js` dependency in `packages/javascript/p
206
206
Then run the `updateplotlyjs` command with:
207
207
208
208
```bash
209
+
$ cd packages/python/plotly
209
210
$ python setup.py updateplotlyjs
210
211
```
211
212
@@ -214,6 +215,13 @@ the `plotly/plotly.js` GitHub repository (and place them in
214
215
`plotly/package_data`). It will then regenerate all of the `graph_objs`
215
216
classes based on the new schema.
216
217
218
+
For dev branches, it is also possible to use `updateplotlyjsdev --devrepo reponame --devbranch branchname` to update to development versions of `plotly.js`. This will fetch the `plotly.js` in the CircleCI artifact of the branch `branchname` of the repo `reponame`. If `--devrepo` or `--devbranch` are omitted, `updateplotlyjsdev` defaults using `plotly/plotly.js` and `master` respectively. For example, to update to a version from a pull request to the `plotly/plotly.js` repo that is numbered 555, run:
Copy file name to clipboardExpand all lines: doc/python/2D-Histogram.md
+68-2Lines changed: 68 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ jupyter:
6
6
extension: .md
7
7
format_name: markdown
8
8
format_version: '1.2'
9
-
jupytext_version: 1.3.0
9
+
jupytext_version: 1.3.1
10
10
kernelspec:
11
11
display_name: Python 3
12
12
language: python
@@ -20,7 +20,7 @@ jupyter:
20
20
name: python
21
21
nbconvert_exporter: python
22
22
pygments_lexer: ipython3
23
-
version: 3.7.5
23
+
version: 3.6.8
24
24
plotly:
25
25
description: How to make 2D Histograms in Python with Plotly.
26
26
display_as: statistical
@@ -30,9 +30,75 @@ jupyter:
30
30
order: 6
31
31
page_type: u-guide
32
32
permalink: python/2D-Histogram/
33
+
redirect_from:
34
+
- python/2d-histogram/
35
+
- python/2d-histograms/
33
36
thumbnail: thumbnail/histogram2d.jpg
34
37
---
35
38
39
+
## 2D Histograms or Density Heatmaps
40
+
41
+
A 2D histogram, also known as a density heatmap, is the 2-dimensional generalization of a [histogram](/python/histograms/) which resembles a [heatmap](/python/heatmaps/) but is computed by grouping a set of points specified by their `x` and `y` coordinates into bins, and applying an aggregation function such as `count` or `sum` (if `z` is provided) to compute the color of the tile representing the bin. This kind of visualization (and the related [2D histogram contour, or density contour](https://plotly.com/python/2d-histogram-contour/)) is often used to manage over-plotting, or situations where showing large data sets as [scatter plots](/python/line-and-scatter/) would result in points overlapping each other and hiding patterns. For data sets of more than a few thousand points, a better approach than the ones listed here would be to [use Plotly with Datashader](/python/datashader/) to precompute the aggregations before displaying the data with Plotly.
42
+
43
+
## Density Heatmaps with Plotly Express
44
+
45
+
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/) and produces [easy-to-style figures](/python/styling-plotly-express/). The Plotly Express function `density_heatmap()` can be used to produce density heatmaps.
Marginal plots can be added to visualize the 1-dimensional distributions of the two variables. Here we use a marginal [`histogram`](/python/histograms/). Other allowable values are `violin`, `box` and `rug`.
By passing in a `z` value and a `histfunc`, density heatmaps can perform basic aggregation operations. Here we show average Sepal Length grouped by Petal Length and Petal Width for the Iris dataset.
0 commit comments