Skip to content

Commit

Permalink
update to plotly.js 1.51.1
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelle committed Nov 4, 2019
1 parent 79354ab commit 9e7de5d
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 59 deletions.
36 changes: 18 additions & 18 deletions packages/javascript/plotlywidget/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/javascript/plotlywidget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"typescript": "~3.1.1"
},
"dependencies": {
"plotly.js": "^1.51.0",
"plotly.js": "^1.51.1",
"@jupyter-widgets/base": "^2.0.0",
"lodash": "^4.17.4"
},
Expand Down
22 changes: 11 additions & 11 deletions packages/python/plotly/codegen/resources/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16848,55 +16848,55 @@
],
"dflt": "rgb",
"role": "info",
"editType": "plot",
"editType": "calc",
"description": "Color model used to map the numerical color components described in `z` into colors."
},
"zmin": {
"valType": "info_array",
"items": [
{
"valType": "number",
"editType": "plot"
"editType": "calc"
},
{
"valType": "number",
"editType": "plot"
"editType": "calc"
},
{
"valType": "number",
"editType": "plot"
"editType": "calc"
},
{
"valType": "number",
"editType": "plot"
"editType": "calc"
}
],
"role": "info",
"editType": "plot",
"editType": "calc",
"description": "Array defining the lower bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [0, 0, 0]. For the `rgba` colormodel, it is [0, 0, 0, 0]. For the `hsl` colormodel, it is [0, 0, 0]. For the `hsla` colormodel, it is [0, 0, 0, 0]."
},
"zmax": {
"valType": "info_array",
"items": [
{
"valType": "number",
"editType": "plot"
"editType": "calc"
},
{
"valType": "number",
"editType": "plot"
"editType": "calc"
},
{
"valType": "number",
"editType": "plot"
"editType": "calc"
},
{
"valType": "number",
"editType": "plot"
"editType": "calc"
}
],
"role": "info",
"editType": "plot",
"editType": "calc",
"description": "Array defining the higher bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [255, 255, 255]. For the `rgba` colormodel, it is [255, 255, 255, 1]. For the `hsl` colormodel, it is [360, 100, 100]. For the `hsla` colormodel, it is [360, 100, 100, 1]."
},
"x0": {
Expand Down
12 changes: 6 additions & 6 deletions packages/python/plotly/plotly/graph_objs/_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -17587,7 +17587,7 @@ def for_each_layout_image(
Returns the Figure object that the method was called on
"""
for obj in self._select_annotations_like(
prop="images", selector=selector, row=row, col=col, secondary_y=secondary_y
prop="images", selector=selector, row=row, col=col, secondary_y=secondary_y,
):
fn(obj)

Expand Down Expand Up @@ -17640,7 +17640,7 @@ def update_layout_images(
Returns the Figure object that the method was called on
"""
for obj in self._select_annotations_like(
prop="images", selector=selector, row=row, col=col, secondary_y=secondary_y
prop="images", selector=selector, row=row, col=col, secondary_y=secondary_y,
):
obj.update(patch, **kwargs)

Expand Down Expand Up @@ -17776,7 +17776,7 @@ def add_layout_image(
**kwargs
)
return self._add_annotation_like(
"image", "images", new_obj, row=row, col=col, secondary_y=secondary_y
"image", "images", new_obj, row=row, col=col, secondary_y=secondary_y,
)

def select_shapes(self, selector=None, row=None, col=None, secondary_y=None):
Expand Down Expand Up @@ -17859,7 +17859,7 @@ def for_each_shape(self, fn, selector=None, row=None, col=None, secondary_y=None
Returns the Figure object that the method was called on
"""
for obj in self._select_annotations_like(
prop="shapes", selector=selector, row=row, col=col, secondary_y=secondary_y
prop="shapes", selector=selector, row=row, col=col, secondary_y=secondary_y,
):
fn(obj)

Expand Down Expand Up @@ -17912,7 +17912,7 @@ def update_shapes(
Returns the Figure object that the method was called on
"""
for obj in self._select_annotations_like(
prop="shapes", selector=selector, row=row, col=col, secondary_y=secondary_y
prop="shapes", selector=selector, row=row, col=col, secondary_y=secondary_y,
):
obj.update(patch, **kwargs)

Expand Down Expand Up @@ -18117,5 +18117,5 @@ def add_shape(
**kwargs
)
return self._add_annotation_like(
"shape", "shapes", new_obj, row=row, col=col, secondary_y=secondary_y
"shape", "shapes", new_obj, row=row, col=col, secondary_y=secondary_y,
)
12 changes: 6 additions & 6 deletions packages/python/plotly/plotly/graph_objs/_figurewidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -17587,7 +17587,7 @@ def for_each_layout_image(
Returns the Figure object that the method was called on
"""
for obj in self._select_annotations_like(
prop="images", selector=selector, row=row, col=col, secondary_y=secondary_y
prop="images", selector=selector, row=row, col=col, secondary_y=secondary_y,
):
fn(obj)

Expand Down Expand Up @@ -17640,7 +17640,7 @@ def update_layout_images(
Returns the Figure object that the method was called on
"""
for obj in self._select_annotations_like(
prop="images", selector=selector, row=row, col=col, secondary_y=secondary_y
prop="images", selector=selector, row=row, col=col, secondary_y=secondary_y,
):
obj.update(patch, **kwargs)

Expand Down Expand Up @@ -17776,7 +17776,7 @@ def add_layout_image(
**kwargs
)
return self._add_annotation_like(
"image", "images", new_obj, row=row, col=col, secondary_y=secondary_y
"image", "images", new_obj, row=row, col=col, secondary_y=secondary_y,
)

def select_shapes(self, selector=None, row=None, col=None, secondary_y=None):
Expand Down Expand Up @@ -17859,7 +17859,7 @@ def for_each_shape(self, fn, selector=None, row=None, col=None, secondary_y=None
Returns the Figure object that the method was called on
"""
for obj in self._select_annotations_like(
prop="shapes", selector=selector, row=row, col=col, secondary_y=secondary_y
prop="shapes", selector=selector, row=row, col=col, secondary_y=secondary_y,
):
fn(obj)

Expand Down Expand Up @@ -17912,7 +17912,7 @@ def update_shapes(
Returns the Figure object that the method was called on
"""
for obj in self._select_annotations_like(
prop="shapes", selector=selector, row=row, col=col, secondary_y=secondary_y
prop="shapes", selector=selector, row=row, col=col, secondary_y=secondary_y,
):
obj.update(patch, **kwargs)

Expand Down Expand Up @@ -18117,5 +18117,5 @@ def add_shape(
**kwargs
)
return self._add_annotation_like(
"shape", "shapes", new_obj, row=row, col=col, secondary_y=secondary_y
"shape", "shapes", new_obj, row=row, col=col, secondary_y=secondary_y,
)
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/offline/_plotlyjs_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# DO NOT EDIT
# This file is generated by the updatebundle setup.py command
__plotlyjs_version__ = "1.51.0"
__plotlyjs_version__ = "1.51.1"
4 changes: 2 additions & 2 deletions packages/python/plotly/plotly/package_data/plotly.min.js

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions packages/python/plotly/plotly/validators/image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ def __init__(self, plotly_name="zmin", parent_name="image", **kwargs):
super(ZminValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
edit_type=kwargs.pop("edit_type", "calc"),
items=kwargs.pop(
"items",
[
{"valType": "number", "editType": "plot"},
{"valType": "number", "editType": "plot"},
{"valType": "number", "editType": "plot"},
{"valType": "number", "editType": "plot"},
{"valType": "number", "editType": "calc"},
{"valType": "number", "editType": "calc"},
{"valType": "number", "editType": "calc"},
{"valType": "number", "editType": "calc"},
],
),
role=kwargs.pop("role", "info"),
Expand All @@ -43,14 +43,14 @@ def __init__(self, plotly_name="zmax", parent_name="image", **kwargs):
super(ZmaxValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
edit_type=kwargs.pop("edit_type", "calc"),
items=kwargs.pop(
"items",
[
{"valType": "number", "editType": "plot"},
{"valType": "number", "editType": "plot"},
{"valType": "number", "editType": "plot"},
{"valType": "number", "editType": "plot"},
{"valType": "number", "editType": "calc"},
{"valType": "number", "editType": "calc"},
{"valType": "number", "editType": "calc"},
{"valType": "number", "editType": "calc"},
],
),
role=kwargs.pop("role", "info"),
Expand Down Expand Up @@ -520,7 +520,7 @@ def __init__(self, plotly_name="colormodel", parent_name="image", **kwargs):
super(ColormodelValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
edit_type=kwargs.pop("edit_type", "calc"),
role=kwargs.pop("role", "info"),
values=kwargs.pop("values", ["rgb", "rgba", "hsl", "hsla"]),
**kwargs
Expand Down
6 changes: 3 additions & 3 deletions packages/python/plotly/plotlywidget/static/index.js

Large diffs are not rendered by default.

0 comments on commit 9e7de5d

Please sign in to comment.