From 51156e9e77bd554fc9c8e2e22ecc29d0ae46ae28 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Mon, 9 Dec 2019 19:20:05 -0500 Subject: [PATCH 1/2] Px should not hardcode height --- packages/python/plotly/plotly/express/_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/plotly/plotly/express/_core.py b/packages/python/plotly/plotly/express/_core.py index 21b52a5cb78..3911641f06e 100644 --- a/packages/python/plotly/plotly/express/_core.py +++ b/packages/python/plotly/plotly/express/_core.py @@ -19,7 +19,7 @@ class PxDefaults(object): def __init__(self): self.template = None self.width = None - self.height = 600 + self.height = None self.color_discrete_sequence = None self.color_continuous_scale = None self.symbol_sequence = None From f6657ddd582250a732f7d0510521d6756ea5bbf0 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Tue, 10 Dec 2019 07:27:15 -0500 Subject: [PATCH 2/2] Changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3579ea2c9f8..c36b78353c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). for more information - The tutorials of the [plotly.py documentation](https://plot.ly/python/) are now in the main [plotly.py Github repository](https://github.com/plotly/plotly.py). Contributions in order to improve or extend the documentation are very welcome! - + - `plotly.express` generated plots no longer have a default height of 600 pixels, instead they inherit the default height of regular figures [#1990](https://github.com/plotly/plotly.py/pull/1990). Note that the `height` argument to each `plotly.express` function can be set to 600 to restore the legacy behavior. + ### Fixed - Fixed a plotly.express input bug when using data frame indices[#1934](https://github.com/plotly/plotly.py/pull/1934)